﻿using System.Web.Mvc;
using Sportsbook.Domain.Repositories;

namespace Sportsbook.Website.Controllers
{
    public class LeaguesController : Controller
    {
        private readonly ILeaguesRepository repository;

        public LeaguesController(ILeaguesRepository repository)
        {
            this.repository = repository;
        }

        public ActionResult Index(string sportId, string filterType)
        {
            var model = repository.Get(sportId, filterType);
            return View(model);
        }
    }
}
